google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2023-12-21',297476,null,null,null,null], ['2023-12-22',297476,null,null,null,null], ['2023-12-23',297476,null,null,null,null], ['2023-12-24',297476,null,null,null,null], ['2023-12-25',297476,null,null,null,null], ['2023-12-26',297476,null,null,null,null], ['2023-12-27',297476,null,null,null,null], ['2023-12-28',297476,null,null,null,null], ['2023-12-29',297476,null,null,null,null], ['2023-12-30',297476,null,null,null,null], ['2023-12-31',297476,null,null,null,null], ['2024-01-01',297476,null,null,null,null], ['2024-01-02',297476,null,null,null,null], ['2024-01-03',297476,null,null,null,null], ['2024-01-04',297476,null,null,null,null], ['2024-01-05',297476,null,null,null,null], ['2024-01-06',297476,null,null,null,null], ['2024-01-07',297476,null,null,null,null], ['2024-01-08',297476,null,null,null,null], ['2024-01-09',297476,null,null,null,null], ['2024-01-10',297476,null,null,null,null], ['2024-01-11',297476,null,null,null,null], ['2024-01-12',297476,null,null,null,null], ['2024-01-13',297476,null,null,null,null], ['2024-01-14',297476,null,null,null,null], ['2024-01-15',297476,null,null,null,null], ['2024-01-16',297476,null,null,null,null], ['2024-01-17',297476,null,null,null,null], ['2024-01-18',297476,null,null,null,null], ['2024-01-19',297934,null,null,null,null], ['2024-01-20',297941,null,null,null,null], ['2024-01-21',297941,null,null,null,null], ['2024-01-22',297941,null,null,null,null], ['2024-01-23',297941,null,null,null,null], ['2024-01-24',297943,null,null,null,null], ['2024-01-25',297943,null,null,null,null], ['2024-01-26',297943,null,null,null,null], ['2024-01-27',297966,null,null,null,null], ['2024-01-28',297966,null,null,null,null], ['2024-01-29',297966,null,null,null,null], ['2024-01-30',297995,null,null,null,null], ['2024-01-31',298015,null,null,null,null], ['2024-02-01',298021,null,null,null,null], ['2024-02-02',298026,null,null,null,null], ['2024-02-03',298035,null,null,null,null], ['2024-02-04',298035,null,null,null,null], ['2024-02-05',298036,null,null,null,null], ['2024-02-06',298048,null,null,null,null], ['2024-02-07',298049,null,null,null,null], ['2024-02-08',298049,null,null,null,null], ['2024-02-09',298058,null,null,null,null], ['2024-02-10',298062,null,null,null,null], ['2024-02-11',298070,null,null,null,null], ['2024-02-12',298080,null,null,null,null], ['2024-02-13',298082,null,null,null,null], ['2024-02-14',298089,null,null,null,null], ['2024-02-15',298093,null,null,null,null], ['2024-02-16',298093,null,null,null,null], ['2024-02-17',298104,null,null,null,null], ['2024-02-18',298104,null,null,null,null], ['2024-02-19',298104,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });